package com.tjh.spring5.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Create by koala on 2021-02-16
 * day23
 */

@Configuration  //作为配置类，替代xml配置文件
@ComponentScan(basePackages = {"com.tjh"}) //替代：<context:component-scan base-package="com.tjh"></context:component-scan>
public class SpringConfig {

}
